package nc.impl.uapbd;

import nc.bs.framework.common.NCLocator;
import nc.impl.pub.ace.AceFeatureprimaryPubServiceImpl;
import nc.impl.so.m30.SaleOrgPubServiceImpl;
import nc.vo.uapbd.featureprimary.AggFeaturePrimaryHeadVO;
import nc.itf.so.m30.ISaleOrgPubService;
import nc.itf.uapbd.IFeatureprimaryMaintain;
import nc.ui.querytemplate.querytree.IQueryScheme;
import nc.vo.pub.BusinessException;

public class FeatureprimaryMaintainImpl extends AceFeatureprimaryPubServiceImpl implements
		IFeatureprimaryMaintain {

	
	public void delete(AggFeaturePrimaryHeadVO[] vos) throws BusinessException {
		super.pubdeleteBills(vos);
	}

	
	public AggFeaturePrimaryHeadVO[] insert(AggFeaturePrimaryHeadVO[] vos) throws BusinessException {
//		ISaleOrgPubService orgService = NCLocator.getInstance().lookup(ISaleOrgPubService.class);
//		String[] ids = new String[vos.length];
//		ids = orgService.getOIDArray(vos.length);
//		for(int i = 0;i < vos.length;i++){
//			vos[i].getParentVO().setPk_featureprimary(ids[i]);
//		}
		return super.pubinsertBills(vos);
	}

	
	public AggFeaturePrimaryHeadVO[] update(AggFeaturePrimaryHeadVO[] vos) throws BusinessException {
		return super.pubupdateBills(vos);
	}

	
	public AggFeaturePrimaryHeadVO[] query(IQueryScheme queryScheme)
			throws BusinessException {
		return super.pubquerybills(queryScheme);
	}

}
